<template>
	<block>
		<view class="recom-item">
			<view class="recom-imag-container">
				<image :src="`http:${item.image}`"></image>
			</view>
			<view class="recom-title-info">
				<text>{{item.title}}</text>
			</view>
			<view class="recom-price">
				{{item.price|RMB}}
			</view>
		</view>
	</block>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: () => {}
			},
		},
		name: "recom-item",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.recom-item {
		margin: 15rpx;
		width: 340rpx;
		height: 450rpx;
		background-color: #fff;

		.recom-imag-container {
			@include flex-box(center, center, row) width: 100%;
			height: 300rpx;

			image {
				width: 280rpx;
				height: 280rpx;
			}
		}

		.recom-title-info {
			padding-left: 20rpx;
			padding-right: 20rpx;

			text {
				@include flex-ellipsis(2)
			}
		}

		.recom-price {
			color: $shop-price-color;
			padding-left: 20rpx;
			padding-top: 10rpx;
		}


	}
</style>